﻿#include "Framework/CommonHead.h"

#include "ScriptCompiler/Compiler.h"
#include "ScriptCompiler/CompileResult.h"

#include "File/FileUtils.h"
#include "Path/Paths.h"

#include "ScriptRuntime/ScriptSubsystem.h"

#include "TestObject.h"

#include "Widgets/Widget.h"

int main(int argc, char* argv[])
{  
   auto App=NewObject<RApplication>();
   
   SApplicationArgument Arguments;
   Arguments.ExecutablePath=SPath(argv[0]);
   Arguments.WorkThreadNum=3;

   App->Initialize(Arguments);

   App->GCInterval=10;

   // {
   //    auto TestObject2=NewObject<RTestObject>();

   //    auto TestObject=NewObject<RObject>(TestObject2);
   //    TestObject2->RefObject=TestObject;
   // }

   {
     auto Widget= NewObject<RWidget>();
   }


   return App->Run();

}